//
//  CCUICreator.h
//  DingDongZP
//
//  Created by Ray on 16/5/5.
//  Copyright © 2016年 iyhjiang.com. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface UILabel (CCUICreator)

+ (instancetype)labelWithFrame:(CGRect)frame
                          font:(UIFont *)font
                     textColor:(UIColor *)color
                          text:(NSString *)text;

@end

@interface UIButton (CCUICreator)

+ (instancetype)buttonWithFrame:(CGRect)frame
                          title:(NSString *)title
                          image:(UIImage *)image
                     background:(UIImage *)bgimage
                         target:(id)target
                       selector:(SEL)sel;

+ (instancetype)buttonWithFrame:(CGRect)frame
                          image:(UIImage *)img
                 hilightedImage:(UIImage *)himage
                         target:(id)target
                       selector:(SEL)sel;

+ (instancetype)buttonWithFrame:(CGRect)frame
                          image:(UIImage *)img
                  selectedImage:(UIImage *)simage
                         target:(id)target
                       selector:(SEL)sel;

+ (instancetype)buttonWithFrame:(CGRect)frame
                         target:(id)target
                       selector:(SEL)sel;

@end
